<h2><?= anchor('admin/candidats', 'Candidats') ?> Gestion du candidat</h3>

<table class="details">
	<tr>
		<td>Candidat</td>
		<td><?= $user->firstname ?> <?= $user->name ?> <?= details_link($user, 'user_details') ?></td>
	</tr>
	<tr>
		<td>E-mail</td>
		<td><a href="mailto:<?= $user->email ?>"><?= $user->email ?></a></td>
	</tr>
	<tr>
		<td>Statut</td>
		<td><?= $user->status_label ?></td>
	</tr>
</table>

<h3>Changer le statut du candidat :</h3>
<?= form_open('admin/candidats/force_status/'.$user->id, 'class="stylized"') ?>
	<table>
		<tr>
			<td>Nouveau statut :</td>
			<td><?= form_dropdown('user_status', $statuses, $user->status_id) ?></td>
		</tr>
		<tr>
			<td>Envoyer un e-mail de notification :</td>
			<td><?= form_checkbox('send_notification_email', 1, 1) ?></td>
		</tr>
	</table>
	<p class="button-box">
		<?= button_submit('Valider') ?>
	</p>
</form>
